// A mock function to mimic making an async request for data
export default function fetchCount(amount = 1): Promise<{
  data: number
}> {
  return new Promise<{ data: number }>(
    (resolve) => setTimeout(() => resolve({ data: amount }), 1000),
  );
}
